package com.magist.core.entity;

import com.magist.core.auth.AuthUser;

import java.util.HashMap;
import java.util.Map;


/**
 * 当前请求的对象内容
 * @author juror
 *
 */
public class CxtRequest {
	
	private String requestId;		//请求Id
	private String sessionId;		//会话Id
	private String clientIp;		//客户端IP
	private String domain;			//域名
	private boolean isAjax;			//ajax标志
	
	private AuthUser user;			//当前用户信息
	
	private Map<String,Object> map = new HashMap<String,Object>();

	public void getParam(String key,Object value) {
		map.put(key, value);
	}
	public Object getParam(String key) {
		return map.get(key);
	}
	
	public String getRequestId() {
		return requestId;
	}

	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}

	public String getClientIp() {
		return clientIp;
	}

	public void setClientIp(String clientIp) {
		this.clientIp = clientIp;
	}

	public String getDomain() {
		return domain;
	}

	public void setDomain(String domain) {
		this.domain = domain;
	}

	public boolean isAjax() {
		return isAjax;
	}

	public void setAjax(boolean isAjax) {
		this.isAjax = isAjax;
	}
	public String getSessionId() {
		return sessionId;
	}
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	public AuthUser getUser() {
		return user;
	}
	public void setUser(AuthUser user) {
		this.user = user;
	}
	
	
}
